#--{{ Zshell config
# zstyle config
zstyle ':compinstall' filename '/home/diraven/.zshrc'
zstyle ':completion:*' completer _expand _complete 
zstyle ':completion:*' max-errors 1 

# Initialization
autoload -Uz compinit
compinit
autoload -U colors && colors

# Some additional variables

# History
HISTSIZE=1000
SAVEHIST=1000
HISTFILE=~/.histfile
setopt autocd automenu

# Prompt
# PROMPT='[%n@%m]%# %{$fg[red]%}asdfasdf%{$reset_color%}' # default prompt
PROMPT="[%{$fg[green]%}%n%{$reset_color%}@%{$fg[cyan]%}%m%{$reset_color%}]%% "
RPROMPT='%~' # prompt for right side of screen 

# Keybindings
bindkey "\e[8~" end-of-line # End
bindkey "\e[7~" beginning-of-line # Home
bindkey "\e[3~" delete-char # Delete

# Aliases
alias todo='gvim ~/txt/todo'
alias pacman='sudo pacman'

alias cfg.awesome='vim ~/.config/awesome/rc.lua'
alias cfg.awesome.theme='vim ~/.config/awesome/themes/default/theme.lua'
alias cfg.awesome.xephyr='Xephyr -ac -br -noreset -screen 800x600 :1 &'
alias cfg.zsh='vim ~/.zshrc'
alias cfg.Xdefaults='vim ~/.Xdefaults'
alias cfg.urxvt='vim ~/.Xdefaults'
alias cfg.autorun='vim ~/sys/scripts/sys.autorun'
alias cfg.fstab='sudo vim /etc/fstab'
alias cfg.arch='sudo vim /etc/rc.conf'
alias cfg.vim='vim ~/.vimrc'

alias cmd.torrents.throw='mv -v ~/Downloads/*.torrent /mnt/smbnet/WE/CHEBURASHKA/E/torrents'

alias rdesk.cheburashka='rdesktop -u larisa -p "" -K -T "rdesktop" -g 1440x860 192.168.1.11 &'


# Suffix aliases
alias -s html=$BROWSER
alias -s PKGBUILD=$EDITOR
alias -s djvu="apvlv"
alias -s pdf="apvlv"
alias -s jpeg="feh"
alias -s jpg="feh"

# Other options

#--}}

#--{{ PATH variable
PATH=$PATH:$HOME/sys/scripts
export PATH
#--}}
